<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta http-equiv="Cache-Control" content="no-siteapp" />
        <link href="assets/css/bootstrap.min.css" rel="stylesheet" />
        <link rel="stylesheet" href="css/style.css"/>       
        <link href="assets/css/codemirror.css" rel="stylesheet">
        <link rel="stylesheet" href="assets/css/ace.min.css" />
        <link rel="stylesheet" href="assets/css/font-awesome.min.css" />
		<!--[if IE 7]>
		  <link rel="stylesheet" href="assets/css/font-awesome-ie7.min.css" />
		<![endif]-->
        <!--[if lte IE 8]>
		  <link rel="stylesheet" href="assets/css/ace-ie.min.css" />
		<![endif]-->
			<script src="assets/js/jquery.min.js"></script>

		<!-- <![endif]-->

		<!--[if IE]>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<![endif]-->

		<!--[if !IE]> -->

		<script type="text/javascript">
			window.jQuery || document.write("<script src='assets/js/jquery-2.0.3.min.js'>"+"<"+"/script>");
		</script>

		<!-- <![endif]-->

		<!--[if IE]>
<script type="text/javascript">
 window.jQuery || document.write("<script src='assets/js/jquery-1.10.2.min.js'>"+"<"+"/script>");
</script>
<![endif]-->

		<script type="text/javascript">
			if("ontouchend" in document) document.write("<script src='assets/js/jquery.mobile.custom.min.js'>"+"<"+"/script>");
		</script>
		<script src="assets/js/bootstrap.min.js"></script>
		<script src="assets/js/typeahead-bs2.min.js"></script>
		<!-- page specific plugin scripts -->
		<script src="assets/js/jquery.dataTables.min.js"></script>
		<script src="assets/js/jquery.dataTables.bootstrap.js"></script>
        <script type="text/javascript" src="js/H-ui.js"></script> 
        <script type="text/javascript" src="js/H-ui.admin.js"></script> 
        <script src="assets/layer/layer.js" type="text/javascript" ></script>
        <script src="assets/laydate/laydate.js" type="text/javascript"></script>
<title>招聘申请审核</title>
</head>

<body>
<div class="margin clearfix">
 <div class="Shops_Audit">
   <div class="prompt">当前共有<b>2</b>条招聘申请需审核</div>
   <!--申请列表-->
   <div class="audit_list">
     <table class="table table-striped table-bordered table-hover" id="sample-table">
       <thead>
		 <tr>
		    <th width="80px">序号</th>
		 	<th width="180px">部门编号</th>
            <th width="120px">招聘部门</th>
            <th width="120px">部门负责人</th>
            <th width="120px">联系电话</th>
			<th width="120px">邮箱</th>
            <th width="120px">招聘人数</th>
			<th width="120px">申请人</th>
            <th width="150px">申请时间</th>
			<th width="120px">审核人</th>  
            <th width="100px">审核状态</th>              
            <th width="200px">操作</th>
			</tr>
		</thead>
        <tbody>
        	<tr>
		 <td>1</td>
		 <td>132</td>
         <td>人力资源部</td>
         <td>张三</td>
         <td>152346851462</td>
         <td>1235245@qq.com</td>
         <td >5</td>
		 <td >张三</td>
         <td>2016-7-23</td>
         <td></td>
         <td class="td-status"><span class="label label-success radius">待审核</span></td>
          <td class="td-manage">
          <a onClick="member_good(this,'10001')"  href="javascript:;" title="审核通过"  class="btn btn-xs btn-success"><i class="icon-ok bigger-120"></i></a> 
          <a title="招聘详细" class="btn btn-xs btn-info property_edit" ><i class="icon-list bigger-120"></i></a> 
          </td>
        </tr>
		<tr>
		 <td>2</td>
		 <td>134</td>
     	 <td>销售部</td>
         <td>王五</td>
         <td>152346851462</td>
         <td>1235245@qq.com</td>
         <td >5</td>
		 <td >王五</td>
         <td>2016-7-23</td>
         <td></td>
         <td class="td-status"><span class="label label-success radius">待审核</span></td>
          <td class="td-manage">
          <a onClick="member_good(this,'10001')"  href="javascript:;" title="审核通过"  class="btn btn-xs btn-success"><i class="icon-ok bigger-120"></i></a> 
          <a title="招聘详细" class="btn btn-xs btn-info property_edit" ><i class="icon-list bigger-120"></i></a> 
          </td>
        </tr>
		<tr>
		 <td>3</td>
		 <td>131</td>
         <td>开发部</td>
         <td>李四</td>
         <td>152346852456</td>
         <td>1235245@qq.com</td>
         <td >7</td>
		 <td >李四</td>
         <td>2016-7-23</td>
         <td>周全</td>
         <td class="td-status"><span class="label label-defaunt radius">已审核</span></td>
          <td class="td-manage">
          <a title="招聘详细"  class="btn btn-xs btn-info property_edit" ><i class="icon-list bigger-120"></i></a> 
          </td>
        </tr>
		 
		
        </tbody>
        </table>
   
   </div>
 </div>
</div>
<!--编辑区域分配图层-->
<div class="edit_menber" id="edit_menber_style" style="display:none">
  <ul class=" page-content">
    <div class="Operate_cont clearfix">
      <label class="form-label"><span class="c-red">*</span>部门编号：</label>
      <div class="formControls " style="width:280px;">
        <span  style="margin-left:10px;">123</span>
      </div>
    </div>
    <div class="Operate_cont clearfix">
      <label class="form-label"><span class="c-red">*</span>部门名称：</label>
      <div class="formControls ">
        <span  style="margin-left:10px;">销售部</span>
      </div>
    </div>
    <div class="Operate_cont clearfix">
      <label class="form-label"><span class="c-red">*</span>招聘职位：</label>
      <div class="formControls ">
       <span  style="margin-left:10px;">销售员</span>
      </div>
    </div>
    <div class="Operate_cont clearfix">
      <label class="form-label"><span class="c-red">*</span>联系电话：</label>
      <div class="formControls ">
        <span  style="margin-left:10px;">15234168524</span>
      </div>
    </div> <div class="Operate_cont clearfix">
      <label class="form-label"><span class="c-red">*</span>邮箱：</label>
      <div class="formControls ">
        <span  style="margin-left:10px;">1242352@qq.com</span>
      </div>
    </div>
    <div class="Operate_cont clearfix">
      <label class="form-label"><span class="c-red"></span>招聘人数：</label>
      <div class="formControls ">
        <span  style="margin-left:10px;">5</span>
      </div>
    </div>
    <div class="Operate_cont clearfix">
      <label class="form-label"><span class="c-red"></span>申请人：</label>
      <div class="formControls ">
        <span  style="margin-left:10px;">张三</span>
      </div>
    </div>
	<div class="Operate_cont clearfix">
      <label class="form-label"><span class="c-red"></span>申请时间：</label>
      <div class="formControls "><span  style="margin-left:10px;">2016-6-21 34：23</span>
      </div>
    </div>
    <div class="Operate_cont clearfix">
      <label class="form-label">用人要求：</label>
      <div class="formControls">
        <span  style="margin-left:10px;">用人要求很高</span>
       
      </div>
    </div>
  </ul>
</div>
</div>
</div>
</div>
</body>
</html>
<script>
/*区域分配-编辑*/
 $('.property_edit').on('click', function(){
	  layer.open({
        type: 1,
        title: '查看',
		maxmin: true, 
		shadeClose:false, //点击遮罩关闭层
        area : ['600px' , ''],
        content:$('#edit_menber_style'),
		 btn:['返回'],
                yes:function(index,layero){
                    var num=0;
                    var str="";
                    $(".add_menber input[type$='text']").each(function(n){
                        if($(this).val()=="")
                        {
                            layer.alert(str+=""+$(this).attr("name")+"不能为空！\r\n",{
                                title: '提示框',
                                icon:0,
                            });
                            num++;
                            return false;
                        }
                    });
                    if(num>0){  return false;}
                    else{
                        layer.close(index);
                    }
                }
            });
        });

jQuery(function($) {
				var oTable1 = $('#sample-table').dataTable( {
				"aaSorting": [[ 1, "desc" ]],//默认第几个排序
		"bStateSave": true,//状态保存
		"aoColumnDefs": [
		  //{"bVisible": false, "aTargets": [ 3 ]} //控制列的隐藏显示
		  {"orderable":false,"aTargets":[2,3,4,5,6,7,8,9,10]}// 制定列不参与排序
		] } );
				
				
				$('table th input:checkbox').on('click' , function(){
					var that = this;
					$(this).closest('table').find('tr > td:first-child input:checkbox')
					.each(function(){
						this.checked = that.checked;
						$(this).closest('tr').toggleClass('selected');
					});
						
				});
			
			
				$('[data-rel="tooltip"]').tooltip({placement: tooltip_placement});
				function tooltip_placement(context, source) {
					var $source = $(source);
					var $parent = $source.closest('table')
					var off1 = $parent.offset();
					var w1 = $parent.width();
			
					var off2 = $source.offset();
					var w2 = $source.width();
			
					if( parseInt(off2.left) < parseInt(off1.left) + parseInt(w1 / 2) ) return 'right';
					return 'left';
				}
			})


laydate({
    elem: '#start',
    event: 'focus' 
});
/*招聘-通过*/
function member_good(obj,id){
	layer.confirm('确认要通过该招聘计划吗？',function(index){
		
		$(obj).parents("tr").find(".td-status").html('<span class="label label-default radius">已审核</span>');
		$(obj).remove();
		layer.msg('已审核!',{icon: 6,time:1000});
	});
}
/*招聘-详情*/
function member_detailed(title,url,id,w,h){
	layer_show(title,url+'#?='+id,w,h);
}
//面包屑返回值
var index = parent.layer.getFrameIndex(window.name);
parent.layer.iframeAuto(index);
$('.Refund_detailed').on('click', function(){
	var cname = $(this).attr("title");
	var chref = $(this).attr("href");
	var cnames = parent.$('.Current_page').html();
	var herf = parent.$("#iframe").attr("src");
    parent.$('#parentIframe').html(cname);
    parent.$('#iframe').attr("src",chref).ready();;
	parent.$('#parentIframe').css("display","inline-block");
	parent.$('.Current_page').attr({"name":herf,"href":"javascript:void(0)"}).css({"color":"#4c8fbd","cursor":"pointer"});
	//parent.$('.Current_page').html("<a href='javascript:void(0)' name="+herf+" class='iframeurl'>" + cnames + "</a>");
    parent.layer.close(index);
	
});
</script>
